<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>引出生命周期</title>
		<script src="../js/vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="root">
			<h2>当前的n值是:{{n}}</h2>
			<button type="button" @click="add">点我n + 1</button>
		</div>
		<script type="text/javascript">
			Vue.config.productionTip = false
			new Vue({
				el:"#root",
				data:{
					n:1
				},
				methods:{
					add(){
						this.n ++
					}
				},
				beforeCreate(){
					
				},
				created(){
					
				},
				beforeMount(){
					
				},
				mounted(){
					
				},
				beforeUpdate(){
					
				},
				updated(){
					
				}

			})
		</script>
	</body>
</html>
